package system.model.request;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author 米泽鹏
 * @since 2022-3-12 下午 2:33
 */
@Data
public class ModifyTopicSortRequest {

	/**
	 * 话题id
	 */
	@NotNull(message = "话题id不能为空")
	private Long topicId;

	/**
	 * 排序
	 */
	@NotNull(message = "排序不能为空")
	@Max(value = Integer.MAX_VALUE, message = "排序不能大于" + Integer.MAX_VALUE)
	@Min(value = 1, message = "排序不能小于1")
	private Integer sort;

}
